package com.lq.ecoldchain.ui.mine.enter

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2018/12/26 0026  20:01
*function by lq
*/
val enterKodeinModule = Kodein.Module("Entering_Kodein_Module"){
    bind<EnterViewModel>() with scoped(AndroidLifecycleScope).singleton {
        EnterViewModel()
    }

    bind<EnterDelegate>() with scoped(AndroidLifecycleScope).singleton {
        EnterDelegate(
                viewModel =  instance()
        )
    }


}